package com.example.androidui12306;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class Login extends AppCompatActivity {

    private Button login;


    private static final String TAG = "Login";

    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);

        iniView();
        inidata();
    }

    private void inidata() {
        login.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent  =  new Intent(Login.this,My12306.class);
                startActivity(intent);
                Log.e(TAG, "onClick:Login Button Click");

            }
        });

    }

    private void iniView() {
        login = findViewById(R.id.btn_Login);

    }
}
